#include "mainwindow.h"
#include <QApplication>
#include <QLabel>
#include <QWidget>
#include <QtGui>
#include <ActiveQt/QAxWidget>
#include <QTextCodec>
#include <QTime>
#include <QSplashScreen>
#include "fr_armaturenbrett.h"
#include "position_display.h"




int main(int argc, char *argv[])
{
    QApplication a(argc, argv);

    QPixmap pix("D:\\bupt_v.0.1\\stm32\\sjFlp4fB.gif");
       QSplashScreen splash(pix);
       splash.setWindowOpacity(0.5);// 设置窗口透明度
       QLabel label(&splash);
       QMovie mv("D:\\bupt_v.0.1\\stm32\\sjFlp4fB.gif");
       label.setMovie(&mv);
       mv.start();
       splash.show();
       splash.setCursor(Qt::BlankCursor);
       //a.processEvents();
       for(int i=0; i<500; i+=mv.speed())
       {
       QCoreApplication::processEvents();
       Sleep(mv.speed());
       }







    MainWindow w;

    //w.f.show();
    w.show();

    return a.exec();
}
